package com.socool;


import android.support.v4.app.Fragment;

public class DSFragment extends Fragment {
	 
    
	protected void replaceFragment(Fragment fragment,String title) {
 		if (getActivity() == null)
 			return;
 		
 			HomeActivity fca = (HomeActivity) getActivity();
 			fca.replaceFragment(fragment,title);
 		
 	}
	
	protected void addFragment(Fragment fragment,String title) {
 		if (getActivity() == null)
 			return;
 		
 		HomeActivity fca = (HomeActivity) getActivity();
 			fca.addFragment(fragment,title);
 		
 	}
 
}

